from appium.webdriver.common.mobileby import MobileBy
from app_wechat_po.base.base_page import BasePage


class EditMemberPage(BasePage):
    def edit_member_page(self,name,phonenum):
        # 4.输入【姓名】
        self.fing_and_send(MobileBy.ID, "com.tencent.wework:id/b0_",name)
        # 5.输入【手机号】
        self.fing_and_send(MobileBy.ID, "com.tencent.wework:id/f85",phonenum)
        # 6.点击【保存】
        self.find_and_click(MobileBy.ID, "com.tencent.wework:id/ad3")

        from app_wechat_po.page.add_member_page import AddMemberPage
        return AddMemberPage(self.driver)